package com.hbt.myplus.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author astupidcoder
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Pay extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String sno;

    private BigDecimal price;

    private String itemname;

    private String poid;

    private Date time;

    @Override
    public String toString() {
        return "Pay{" +
                "id=" + id +
                ", sno='" + sno + '\'' +
                ", price=" + price +
                ", itemname='" + itemname + '\'' +
                ", poid='" + poid + '\'' +
                ", time=" + time +
                ", petOwn=" + petOwn +
                '}';
    }

    public PetOwn getPetOwn() {
        return petOwn;
    }

    public void setPetOwn(PetOwn petOwn) {
        this.petOwn = petOwn;
    }

    @TableField(exist = false)
    private PetOwn petOwn;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public String getPoid() {
        return poid;
    }

    public void setPoid(String poid) {
        this.poid = poid;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
